import request from '@/utils/request'

// 查询客户订单计划列表
export function listCsOrderPlan(query) {
  return request({
    url: '/customer/CsOrderPlan/list',
    method: 'get',
    params: query
  })
}

// 查询客户订单计划详细
export function getCsOrderPlan(id) {
  return request({
    url: '/customer/CsOrderPlan/' + id,
    method: 'get'
  })
}

// 新增客户订单计划
export function addCsOrderPlan(data) {
  return request({
    url: '/customer/CsOrderPlan',
    method: 'post',
    data: data
  })
}

// 修改客户订单计划
export function updateCsOrderPlan(data) {
  return request({
    url: '/customer/CsOrderPlan',
    method: 'put',
    data: data
  })
}

// 删除客户订单计划
export function delCsOrderPlan(id) {
  return request({
    url: '/customer/CsOrderPlan/' + id,
    method: 'delete'
  })
}
